package org.domain.rescue2011.session;

import org.domain.rescue2011.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;
import org.jboss.seam.framework.EntityQuery;

import es.us.isa.jdbl.domain.biblio.Biblio;

@Name("biblioList")
public class BiblioList extends EntityQuery<Biblio> {

	private static final String EJBQL = "select biblio from Biblio biblio";

	// private static final String[] RESTRICTIONS = {
	// "lower(node.type) like lower(concat(#{nodeList.node.type},'%'))",
	// "lower(node.language) like lower(concat(#{nodeList.node.language},'%'))",
	// "lower(node.title) like lower(concat(#{nodeList.node.title},'%'))", };

	private Biblio biblio = new Biblio();

	public BiblioList() {
		setEjbql(EJBQL);
		// setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Biblio getBiblio() {
		return biblio;
	}

}
